package com.example.service;


import com.example.mapper.GeneralMapper;
import com.example.pojo.aboutSchool.Schools;
import com.example.pojo.aboutUser.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class GeneralService {

    @Resource
    private GeneralMapper generalMapper;


    public List<Schools> test() {
        return generalMapper.test();
    }

    public List<Schools> search(String keyword){
        return generalMapper.search(keyword);
    }

    public void insertCollege(Schools schools) {
        generalMapper.insertCollege(schools);
    }


    public void deleteCollege(Schools schools) {
        generalMapper.deleteCollege(schools);
    }

    public void changeCollege(Schools schools) {
        generalMapper.changeCollege(schools);
    }
}
